package com.zty.xiaomi.server.Service.Order;

import com.zty.xiaomi.server.Entity.Address.Addre;
import com.zty.xiaomi.server.Entity.Order.*;
import org.apache.ibatis.session.SqlSession;

import java.io.IOException;
import java.util.List;

public interface OrderService {

    OrderList creatOrder(OrdCreaParm ordCreaParm) throws IOException, Exception;

    int getOrderStatus(int orderid);

    void delOrder(int orderid);

    List<orderItemVoList> getOrderItems(String userid) throws IOException;

    Addre getAdd(String userid, int id) throws IOException;

    OrdFina getOrderById(int id) throws IOException;

    OrderDetail getOrderdetailByOrderNo(int orderNo) throws IOException;

    List<UserOrdList> getOrderList(String userid,String statusDesc) throws IOException;

    List<UserOrdItemList> getOrderListItems(int orderId) throws IOException;

    void buyOrder(int id, String username);
    void UpdateOrder(int status, String statusDesc, int id);

    int getGoodIdByOrderNo(int orderNo) throws IOException;

    String getInsuranceIdByOrderNoAndGoodId(int orderNo, int good_id) throws IOException;

    String getpaymentTimeByOrderNo(int orderNo) throws IOException;

    OrderGood getOrderGoodByGoodIdAndOrderNo(int orderNo, int good_id) throws IOException;

    OrderList getOrderDetialByNo(int id);

    List<OrderList> getAllOrdeStatusDesc();

    int Thedeliverynotice(int orderNo);

    int updateOrderGoodStatusByOrderNoAndGoodId(int orderNo, int good_id, int status) throws IOException;
}
